<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>内部合同产品信息管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	var ctx = ${ctx};
</script>
<script src="/jeesite/pro/virtualDetailForm/js/virtualDetailForm.js" type="text/javascript"></script>
<script src="/jeesite/pro/realDetailForm/js/choiceProInfo.js" type="text/javascript"></script>
<script src="/jeesite/pro/realDetailForm/js/choiceSupplier.js" type="text/javascript"></script>
<script type="text/javascript">
//清空产品编号
function emptyProductCodeNum(){
	 $("#productCodeNumEdit").remove();
	 $("#productCodeNumEdit").remove();
	 $("#productFlag").append("<input type='hidden' class='input-xlarge' id='productCodeNumEdit'/>"); 
}
function emptySupplierCodeNum(){
	  $("#supplierCodeNumEdit").remove();
	  $("#supplierCodeNumEdit").remove();
	  $("#supplierFlag").append("<input type='hidden' class='input-xlarge' id='productCodeNumEdit'/>"); 
	}
function emptyProductCodeNumAdd(){
	  $("#productCodeNum").remove();
	  $("#productCodeNum").remove();
	  $("#productFlagAdd").append("<input type='hidden' id='productCodeNum'/>"); 
	}
function emptySupplierCodeNumAdd(){
	  $("#supplierCodeNum").remove();
	  $("#supplierCodeNum").remove();
	  $("#supplierFlagAdd").append("<input type='hidden' id='supplierCodeNum'/>"); 
	}
</script>
</head>
<body>
	<div class="container" style="width: 100%;">
		<div style="margin: 20px; border: 1px solid #c8d1d5;">
			<div style="padding: 10px; background-color: #f4f4f4; border-bottom: 1px solid #c8d1d5;">
				<h4>
					<i class="icon-globe"></i>${not empty virtualContract.id?'修改':'添加'}内部合同
					</h4>
				<ul class="ul-form" style="float: right; margin-top: -25px;">
					<li style="list-style: none">
					${not empty virtualContract.id?'<a class="btn btn-primary" href="javascript:void(0)" onclick="upgradeContract()">&gt;&nbsp;升级为客户合同</a>':''}
					&nbsp;${not empty virtualContract.id?'<a style="float: right;"  class="btn btn-info" href="javascript:void(0)" id="btnExport">
						<i class="icon-upload"></i>&nbsp;导出
					</a>':''}
					${not empty virtualContract.id?'<a class="btn btn-info" href="javascript:void(0)" id="btnImport">
						<i class="icon-upload"></i>&nbsp;导入
					</a>':''}&nbsp;
						${empty virtualContract.id?'<a class="btn btn-info" href="javascript:void(0)" id="btnImport">
						<i class="icon-upload"></i>&nbsp;导入
					</a>':''}&nbsp;
					</li>
				</ul>
			</div>
		<form action="${ctx}/pro/virtualDetail/save" method="post" id="saveForm">
		<div style="margin: 17px;">
			<div class="row-fluid" style="border: 1px solid #c8d1d5; padding-top: 10px; margin-bottom: 20px;">
				<div class="row-fluid ">
					<div class="span3" style="margin-left: 10px;">
						<label class="control-label"
							style="font-size: 14px; margin-bottom: 3px;">内部合同订单号</label>
						<div class="">
							<input type="text" id="code" name="code" value="${virtualContract.code }" class="span12" /> 
							<input value="${virtualContract.id }" name="id" id="virtualContract.id" type="hidden" />
						</div>
					</div>
				</div>
			</div>
			<table id="contentTable" class="table table-hover table-bordered" style="word-wrap:break-all;word-break:break-all;">
				<thead>
					<tr class="widget-title">
						<c:forEach items="${columnList}" var="column">
							<c:choose>
								<c:when test="${column.className == 'productInfoName'}">
									<th style="white-space: normal;"><span id="productInfoNameSpan">产品名称</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'productInfoProductCode'}">
									<th style="white-space: normal;"><span id="productCodeSpan">产品代码</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when
									test="${column.className == 'productInfoSpecifications'}">
									<th style="white-space: normal;"><span id="specificationsSpan">规格</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'productInfoBrand'}">
									<th style="white-space: normal;"><span id="brandSpan">品牌</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'productInfoPackaging'}">
									<th style="white-space: normal;"><span id="packagingSpan">封装</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'unitName'}">
									<th style="white-space: normal;"><span id="unitSpan">单位</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'supplierName'}">
									<th style="white-space: normal;"><span id="supplierSpan">供应商</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'noTaxPrice'}">
									<th style="white-space: normal;"><span id="noTaxPriceSpan">未税价格</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'taxPrice'}">
									<th style="white-space: normal;"><span id="taxPriceSpan">含税价格</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'count'}">
									<th style="white-space: normal;"><span id="countSpan">数量</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'brandReplace'}">
									<th style="white-space: normal;"><span id="brandReplaceSpan">品牌替代说明</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'abnormalProblem'}">
									<th style="white-space: normal;"><span id="abnormalProblemSpan">异常问题</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'executor'}">
									<th style="white-space: normal;"><span id="executorSpan">对应负责人</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'enquiryDate'}">
									<th style="white-space: normal;"><span id="enquiryDateSpan">询价日期</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'deliveryDate'}">
									<th style="white-space: normal;"><span id="deliveryDateSpan">送货日期</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'expirationDate'}">
									<th style="white-space: normal;"><span id="expirationDateSpan">保质期</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'affirmFlag'}">
									<th style="white-space: normal;"><span id="affirmFlagSpan">是否中标</span></th>
								</c:when>
							</c:choose>
							<c:choose>
								<c:when test="${column.className == 'remarks'}">
									<th style="white-space: normal;"> <span id="remarksSpan">备注</span></th>
								</c:when>
							</c:choose>
								</c:forEach>
						<shiro:hasPermission name="pro:virtualDetail:edit">
							<th style="white-space: normal;">操作</th>
						</shiro:hasPermission>
					</tr>
				</thead>
				<tbody id="productInfoTbody">
					<c:forEach items="${list}" var="info">
						<tr>
							<c:forEach items="${columnList}" var="column">
								<c:choose>
									<c:when test="${column.className == 'productInfoName'}">
										<td style="white-space: normal;"><input type="hidden" name=virtualDetailId value="${info.id}"/><span class="productInfoNameSpan">${info.productName }</span>
										<input type="hidden" name="productName" value="${info.productName}"/>
										<input type="hidden" name="productCodeNum" value="${info.productCodeNum}" />
										<span style="display:none" class="productCodeNumSpan">${info.productCodeNum}</span></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'productInfoProductCode'}">
										<td style="white-space: normal;"><span class="productCodeSpan">${info.productCode}</span>
										<input type="hidden" name="productCode" value="${info.productCode}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'productInfoSpecifications'}">
										<td style="white-space: normal;"><span class="specificationsSpan">${info.specifications}</span>
										<input type="hidden" name="specifications" value="${info.specifications}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'productInfoBrand'}">
										<td style="white-space: normal;"><span class="brandSpan">${info.brand}</span>
										<input type="hidden" name="brand" value="${info.brand}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'productInfoPackaging'}">
										<td style="white-space: normal;"><span class="packagingSpan">${info.packaging}</span>
										<input type="hidden" name="packaging" value="${info.packaging}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'unitName'}">
										<td style="white-space: normal;"><span class="unitNameSpan">${info.unit}</span>
										<input type="hidden" name="unit" value="${info.unit}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'supplierName'}">
										<td style="white-space: normal;"><span class="supplierNameSpan">${info.supplier}</span>
										<input type="hidden" name="supplier" value="${info.supplier}"/>
										<input type="hidden" name="supplierCodeNum" value="${info.supplierCodeNum}"/>
										<span style="display:none" class="supplierCodeNumSpan">${info.supplierCodeNum}</span></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'noTaxPrice'}">
										<td style="white-space: normal;"><span class="noTaxPriceSpan">${info.noTaxPrice}</span>
										<input type="hidden" name="noTaxPrice" value="${info.noTaxPrice}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'taxPrice'}">
										<td style="white-space: normal;"><span class="taxPriceSpan">${info.taxPrice}</span>
										<input type="hidden" name="taxPrice" value="${info.taxPrice}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'count'}">
										<td style="white-space: normal;"><span class="countSpan">${info.count}</span>
										<input type="hidden" name="count" value="${info.count}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'brandReplace'}">
										<td style="white-space: normal;"><span class="brandReplaceSpan">${info.brandReplace}</span>
										<input type="hidden" name="brandReplace" value="${info.brandReplace}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'abnormalProblem'}">
										<td style="white-space: normal;"><span class="abnormalProblemSpan">${info.abnormalProblem}</span>
										<input type="hidden" name="abnormalProblem" value="${info.abnormalProblem}"/></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'executor'}">
										<td style="white-space: normal;"><span class="executorSpan">${info.executor}</span>
										<input type="hidden" name="executor" value="${info.executor}" /></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'enquiryDate'}">
										<td style="white-space: normal;"><span class="enquiryDateSpan"><fmt:formatDate value="${info.enquiryDate}" pattern="yyyy-MM-dd" /></span>
										<input type="hidden" name="enquiryDate" value="<fmt:formatDate value="${info.enquiryDate}" pattern="yyyy-MM-dd" />" /></td>
									</c:when>
								</c:choose>
								<c:choose>
									<c:when test="${column.className == 'deliveryDate'}">
										<td style="white-space: normal;"><span class="deliveryDateSpan"><fmt:formatDate value="${info.deliveryDate}" pattern="yyyy-MM-dd" /></span>
										<input type="hidden" name="deliveryDate" value="<fmt:formatDate value="${info.deliveryDate}" pattern="yyyy-MM-dd" />" /></td>
									</c:when>
								</c:choose>
								<c:choose>
										<c:when test="${column.className == 'expirationDate'}">  
											<td style="white-space: normal;"><span class="expirationDateSpan"
										>${info.expirationDate}</span><input type="hidden" name="expirationDate" value="${info.expirationDate}" /></td>
										</c:when>
									</c:choose>
									<c:choose>
										<c:when test="${column.className == 'affirmFlag'}">
											<td style="white-space: normal;"><span class="affirmFlagSpan"><c:choose>
													<c:when test="${info.affirmFlag == 0}">
														<i class="icon-remove"></i>
													</c:when>
													<c:when test="${info.affirmFlag == 1}">
														<i class="icon-ok" style="color: red;"></i>
													</c:when>
												</c:choose> <input type="hidden" name="affirmFlag" value="${info.affirmFlag }" /></span></td>
										</c:when>
									</c:choose>
									<c:choose>
										<c:when test="${column.className == 'remarks'}">  
											<td style="white-space: normal;"><span class="remarksSpan" 
										>${info.remarks}</span><input type="hidden" name="virtualDetailRemarks" value="${info.remarks}"/></td>
										</c:when>
									</c:choose>
							</c:forEach>
							<td style="white-space: normal;"><a href="javascript:" onclick="editRow(this)"><i class="icon-edit"></i></a>&nbsp; 
								   <a href="javascript:" class="deleteRowBy"><i class="icon-remove"></i></a></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			<div class="form-actions formBtn">
				<button type="button" class="btn btn-primary" onclick="addPro()">
					<i class="icon-plus"></i>&nbsp;添加产品
				</button>
			</div>
			<div class="">
				<label class="control-label"
					style="font-size: 14px; margin-bottom: 3px;">备注</label>
				<div>
					<textarea rows="5" name="remarks" class="input-xxlarge" id="virtualContractRemarks">${virtualContract.remarks }</textarea>
				</div>
			</div>
			<div class="form-actions formBtn">
				<button type="button" class="btn btn-primary" onclick="saveDetail()">
					<i class="icon-ok"></i>&nbsp;保存 </button>
				<button type="button" class="btn btn-primary" onclick="history.go(-1)">返 回</button>
			</div>
		</div>
		<!-- 删除的ID数组 -->
		<input type="hidden" name="ids">
		<!-- 合同产品信息 JSON -->
		<input type="hidden" name="virtualDetail" >
		</form>
		<!--导入  box  -->
			<div id="importBox" class="hide">
				<form id="importForm" action="${ctx}/pro/virtualDetail/import?virtualContract.id=${virtualContract.id}"
					method="post" enctype="multipart/form-data" class="form-search"
					style="padding-left: 20px; text-align: center;">
					<br /> <input id="uploadFile" name="file" type="file"
						style="width: 330px" /><br /> <br /> <input
						id="btnImportSubmit" class="btn btn-primary" type="submit"
						value="   导    入   " /> <a
						href="${ctx}/pro/virtualDetail/import/template">下载模板</a>
				</form>
			</div>
		<!--添加  产品窗口 引入代码块 -->
				<div id="divPro"  class="hide">
					<c:forEach items="${columnList}" var="column">
					 <div style="margin-top: 10px;" style="width:100px; height:100px; overflow:auto; border:1px solid #000000;"> 
						<c:choose>
							<c:when test="${column.className == 'productInfoName'}">
							<div id="productFlagAdd">
								<label class="control-label"
									style="width: 130px; text-align: right;">产品名称：</label>
								<input type="text"  id="productName" placeholder="输入信息或双击选择" onchange="emptyProductCodeNumAdd()"/>
								<input type="hidden" id="virtualDetailId" />
								<input type="hidden" id="productCodeNum" />
							</div>
							</c:when>
						</c:choose>
						</div>
						 <c:choose>
							<c:when test="${column.className == 'productInfoProductCode'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">产品代码：</label>
								<input type="text"  id="productCode" onchange="emptyProductCodeNumAdd()"/>
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'productInfoSpecifications'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">产品规格：</label>
								<input type="text"  id="specifications" onchange="emptyProductCodeNumAdd()"/>
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'productInfoBrand'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">品牌：</label>
								<input type="text"  id="brand" onchange="emptyProductCodeNumAdd()" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'productInfoPackaging'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">封装：</label>
								<input type="text"  id="packaging" onchange="emptyProductCodeNumAdd()" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'unitName'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">单位：</label>
								<input type="text"  id="unit" onchange="emptyProductCodeNumAdd()"/>
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'supplierName'}">
							<div id="supplierFlagAdd">
								<label class="control-label"
									style="width: 130px; text-align: right;">供应商：</label>
								<input type="text"  id="supplier" placeholder="输入信息或双击选择" onchange="emptySupplierCodeNumAdd()"/>
								<input type="hidden" id="supplierCodeNum"/>
							</div>
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'noTaxPrice'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">未税价格：</label>
								<input type="number" id="noTaxPrice" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'taxPrice'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">含税价格：</label>
								<input type="number" id="taxPrice" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'count'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">数量：</label>
								<input type="number" id="count" max="999999999" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'brandReplace'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">品牌替代说明：</label>
								<input type="text" id="brandReplace" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'abnormalProblem'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">异常问题确认：</label>
								<input type="text" id="abnormalProblem" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'executor'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">对应负责人：</label>
								<input type="text" id="executor" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'enquiryDate'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">询价日期：</label>
								<input type="date" id="enquiryDate" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'deliveryDate'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">交货日期：</label>
								<input type="date" id="deliveryDate" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'expirationDate'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">保质期：</label>
								<input type="text" id="expirationDate" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'affirmFlag'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">是否中标：</label>
								<input type="radio" name="affirmFlag" checked="checked" value="0"/>否
								<input type="radio" name="affirmFlag" value="1"/>是
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'remarks'}">
								<div>
									<label class="control-label"
										style="width: 130px; text-align: right;">备注：</label>
									<textarea class="input-xlarge " rows="3" id="remarks"
										maxlength="255"></textarea>
								</div>
							</c:when>
						</c:choose>
					</c:forEach>
				</div>
				<!-- 编辑产品 -->  
				<div id="editPro"  class="hide">
					<c:forEach items="${columnList}" var="column">
					 <div style="margin-top: 10px;" style="width:100px; height:100px; overflow:auto; border:1px solid #000000;"> 
						<c:choose>
							<c:when test="${column.className == 'productInfoName'}">
							<div id="productFlag">
								<label class="control-label"
									style="width: 130px; text-align: right;">产品名称：</label>
								<input type="text"  id="productNameEdit" onchange="emptyProductCodeNum()"/>
								<input type="hidden" id="productIdEdit" />
								<input type="hidden" class="input-xlarge" id="productCodeNumEdit"  />
							</div>
							</c:when>
						</c:choose>
						</div>
						 <c:choose>
							<c:when test="${column.className == 'productInfoProductCode'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">产品代码：</label>
								<input type="text"  id="productCodeEdit" onchange="emptyProductCodeNum()"/>
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'productInfoSpecifications'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">产品规格：</label>
								<input type="text"  id="specificationsEdit" onchange="emptyProductCodeNum()" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'productInfoBrand'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">品牌：</label>
								<input type="text"  id="brandEdit" onchange="emptyProductCodeNum()" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'productInfoPackaging'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">封装：</label>
								<input type="text"  id="packagingEdit" onchange="emptyProductCodeNum()"/>
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'unitName'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">单位：</label>
								<input type="text"  id="unitEdit" onchange="emptyProductCodeNum()" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'supplierName'}">
							<div id="supplierFlag">
								<label class="control-label"
									style="width: 130px; text-align: right;">供应商：</label>
								<input type="text"  id="supplierEdit" onchange="emptySupplierCodeNum()"/>
								<input type="hidden" class="input-xlarge" id="supplierCodeNumEdit"  />
								</div>
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'noTaxPrice'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">未税价格：</label>
								<input type="number" id="noTaxPriceEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'taxPrice'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">含税价格：</label>
								<input type="number" id="taxPriceEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'count'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">数量：</label>
								<input type="number" id="countEdit" max="999999999" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'brandReplace'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">品牌替代说明：</label>
								<input type="text" id="brandReplaceEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'abnormalProblem'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">异常问题确认：</label>
								<input type="text" id="abnormalProblemEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'executor'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">对应负责人：</label>
								<input type="text" id="executorEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'enquiryDate'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">询价日期：</label>
								<input type="date" id="enquiryDateEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'deliveryDate'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">交货日期：</label>
								<input type="date" id="deliveryDateEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'expirationDate'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">保质期：</label>
								<input type="text" id="expirationDateEdit" />
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'affirmFlag'}">
								<label class="control-label"
									style="width: 130px; text-align: right;">是否中标：</label>
								<input type="radio" name="affirmFlag"  value="0"/>否
								<input type="radio" name="affirmFlag"  value="1"/>是
							</c:when>
						</c:choose>
						<c:choose>
							<c:when test="${column.className == 'remarks'}">
								<div>
									<label class="control-label"
										style="width: 130px; text-align: right;">备注：</label>
									<textarea class="input-xlarge " rows="3" id="remarksEdit"
										maxlength="255"></textarea>
								</div>
							</c:when>
						</c:choose>
					</c:forEach>
				</div>
			<!-- 选择产品 - JBox -->
			<div id="divProInfo" class="hide">
				<div style="padding: 10px;">
					<div>
						<form:form class="breadcrumb form-search">
							<ul class="ul-form">
								<li><label>产品名称：</label> <input type="text"
									id="productInfoName" style="width: 100px;" /> <label>产品代码：</label>
									<input type="text" id="productInfoCode" style="width: 100px;" />
									<label>类别：</label> <input type="text" id="productType"
									style="width: 100px;" />&nbsp;&nbsp;&nbsp; <a
									class="btn btn-primary" href="javascript:void(0)"
									onclick="selectProduct(this)"> <i class="icon-search"></i>&nbsp;搜索
								</a></li>
							</ul>
						</form:form>
					</div>
					<table
						class="table tablesorter table-striped table-bordered table-condensed"
						style="margin-top: 10px;">
						<thead>
							<tr>
								<th style="width: 8px;"></th>
								<th>产品名称</th>
								<th>类型</th>
								<th>产品代码</th>
								<th>产品规格</th>
								<th>品牌</th>
								<th>封装</th>
								<th>单位</th>
								<th>备注</th>
							</tr>
						</thead>
						<tbody id="rowProInfo"></tbody>
					</table>
					<div class="pagination">
						<ul>
							<li id="previousPageLiTwo" class="disabled"><a
								id="previousPageTwo" href="javascript:">&#171;上一页</a></li>
							<li id="nextPageLiTwo"><a id="nextPageTwo"
								href="javascript:">下一页&#187;</a></li>
							<li class="disabled controls"><a>当前&nbsp; <span
									id="pageNoOne"></span> / <span id="pageSizeOne"></span> 条，共 <span
									id="countOne"></span> 条
							</a></li>
						</ul>
					</div>
				</div>
			</div>
			<!-- 选择供应商 - JBox -->
			<div id="divSupplier" class="hide">
				<div style="padding: 10px;">
					<div>
						<form:form class="breadcrumb form-search">
							<ul class="ul-form">
								<li><label>供应商名称：</label> <input type="text"
									id="supplierName" style="width: 100px;" /> <a
									class="btn btn-primary" href="javascript:void(0)"
									onclick="selectSupplier(this)"> <i class="icon-search"></i>&nbsp;搜索
								</a></li>
							</ul>
						</form:form>
					</div>
					<table
						class="table tablesorter table-striped table-bordered table-condensed"
						style="margin-top: 10px;">
						<thead>
							<tr>
								<th style="width: 8px;"></th>
								<th>供应商名称</th>
								<th>电话</th>
								<th>传真</th>
								<th>邮箱</th>
								<th>网址</th>
								<th>地址</th>
							</tr>
						</thead>
						<tbody id="rowSupplier"></tbody>
					</table>
					<div class="pagination">
						<ul>
							<li id="supplierPreviousPageLi" class="disabled"><a
								id="supplierPreviousPage" href="javascript:">&#171;上一页</a></li>
							<li id="supplierNextPageLi"><a id="supplierNextPage"
								href="javascript:">下一页&#187;</a></li>
							<li class="disabled controls"><a>当前&nbsp; <span
									id="supplierPageNo"></span> / <span id="supplierPageSize"></span>
									条，共 <span id="supplierCount"></span> 条
							</a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>